package com.base.test.mutual.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;

/**
 * OWMS公共返回值
 * @param <T>
 */
@Data
public class OwmsRespData<T> implements Serializable {

    private static final long serialVersionUID = 3845777640958799881L;
    /**
     *  响应类型： Success/Failure
     */
    @JSONField(name = "ask")
    private String ask;
    /**
     *  响应消息
     */
    @JSONField(name = "message")
    private String message;
    /**
     *  请求ID
     */
    @JSONField(name = "request_id")
    private String requestId;
    /**
     *  错误信息内容
     */
    @JSONField(name = "error")
    private OwmsErrorResp error;
    /**
     * 响应数据
     */
    @JSONField(name = "data")
    private T data;
}
